<section id="main" class="column">
	<article class="module width_full">
		<header><h3 class="tabs_involved">Daftar Toko</h3>
			<ul >
				<li><a href="<?php echo base_url("/admin/shop/list");?>">Daftar Toko</a></li>
				<li><a href="<?php echo base_url("/admin/shop/create");?>">Tambah</a></li>
			</ul>
		</header>
		<div class="tab_container">
			<div id="tab1" class="tab_content">
				<table class="tablesorter" cellspacing="0"> 
					<thead>
						<tr>							
							<th>Id</th>
							<th>Nama Toko</th>
							<th>Web URL</th>
							<th>Telepon</th>
							<th>HP</th>
							<th>Email</th>
							<th>Nama Pemilik</th>
							<th>Username</th>
							<th>Password</th>
							<th>Status</th>
							<th>Aksi</th>
						</tr>
					</thead>
					<tbody>
					<?php foreach ($shop as $item): ?>
						<tr>
							<td><?php echo $item['ID'] ?></td>
							<td><?php echo $item['SHOP_NAME'] ?></td>
							<td><?php echo $item['WEB_URL'] ?></td>
							<td><?php echo $item['PHONE'] ?></td>
							<td><?php echo $item['PHONE_MOBILE'] ?></td>
							<td><?php echo $item['EMAIL'] ?></td>
							<td><?php echo $item['CONTACT_PERSON'] ?></td>
							<td><?php echo $item['ACC_USERNAME'] ?></td>
							<td><?php echo $item['ACC_PASSWORD'] ?></td>
							<td><?php echo $item['ACC_STATUS'] ?></td>
							<td>
								<input type="image" src="<?php echo base_url("/images/admin_images/icn_edit.png");?>" title="Ubah" onclick="window.location='<?php echo base_url('/admin/shop/create/' . $item['ID']) ;?>'; return false;">
								<input type="image" src="<?php echo base_url("/images/admin_images/icn_trash.png");?>" title="Hapus" onclick="if (confirm('Anda yakin akan menghapus data ini?')) window.location='<?php echo base_url('/admin/shop/delete/' . $item['ID']) ;?>';">
							</td> 
						</tr>
					<?php endforeach ?>
					</tbody>
				</table>
			</div>			
		</div>
	</article>
</section>


